package string;

public class TrimDemo {
    public static void main(String[] args) {
        /*
        String trim()
        去除当前字符串的两边空白字符串
         */


        String str="  hello world ";
        str.trim();
        System.out.println(str);
        str=str.trim();
        System.out.println(str);






    }
}
